home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / feel0_89.lha / Feel / Doc / fns.doc < prev   
Encoding:
Text File  |  1993-05-20  |  873 b   |  49 lines

  1.  
  2. Documentation for the iteration functions is a little scanty, and only
  3. a few exist: 
  4.  
  5. while (in the loops module)
  6. ----------
  7. (while pred forms...) 
  8.  
  9. Do forms while pred is true:
  10.  
  11. (while (test x)
  12.   (zap x))
  13.  
  14. for (in the loops module)
  15. ----------
  16. (for init cond int body...)
  17.  
  18. execute the init form, then while cond remains non-nil repeatedly
  19. execute the body, followed by the inc form:
  20.  
  21.  (for (setq i 0)
  22.      (< i 10)
  23.      (setq x (+ i 1))
  24.   (wibble (vref zzz i)))
  25.  
  26.  
  27. member
  28. ----------
  29. (member x l pred)
  30.  
  31. Test successive cars of l with predicate until predicate returns true.
  32. The remainder of the list is returned, or if no test succeeds, nil is
  33. returned. 
  34.  
  35. memq
  36. ----------
  37. (memq x l)
  38. Faster version of member, equiv to (member x l eq).
  39.  
  40. assoc
  41. ----------
  42. (assoc x l p)
  43. Association list lookup using pred as predicate.
  44.  
  45. assq
  46. ----------
  47. (assq x l)
  48. Equivalent to (assoc x l eq).
  49.